package com.iweb.work;
import com.iweb.test.Student;
public class work3 {

    //private关键字封装
    public static void main(String[] args) {
        Student stu=new Student();
        stu.setAge(21);
        stu.setName("jack");
        stu.setSex("男");
        System.out.println(stu.getAge()+"岁"+"\t"+stu.getName()+"\t"+stu.getSex());
        stu.sleep();
    }
}
